# fpp makefile

######## CC, LIBS, NAME, OPTIONS are defined in $(ACEDB_MACHINE)_DEF

CCFLAGS =   ## to undefine any rubbish
GCFLAGS =   ## to undefine any rubbish

FPP_OBJS1 = getlist.o ctgpick.o fpgen.o trace.o \
	addfp.o fpp2.o editcontig.o \
	freemem.o colload.o drawfpdata.o contigs.o convert.o \
	 region.o markerstuff.o config.o\
	ctgdisplay.o fingerprint.o clonegen.o genmapcon.o \
	recalc.o cEdit_callbacks.o cEdit_interface.o cEdit_methods.o \
	edit.o searchroutines.o \
	clonenamesearch.o searchmarker.o searchcontig.o projmerge.o \
        mEdit_callbacks.o mEdit_interface.o \
	gtkfpcruler.o gtkhfpcruler.o gtktrack.o gtkhighlight.o \
        gtklayout.o  gtkctgdisplay.o gtkmerge.o gtkhelp.o gtkprint.o

ifdef USE_IMLIB
FPP_OBJS = $(FPP_OBJS1) gtkprint.o
else
FPP_OBJS = $(FPP_OBJS1)
endif

RANLIB_NEEDED = true
AR_OPTIONS = rlu
#################################################################
########## Machine dependent compiler modification ##############
#################################################################

#################################################################
# In principle you should not have to edit the rest of this file
#################################################################

# suppress auto SCCS extraction
.SCCS_GET:

FPP_SOURCES = $(FPP_OBJS:.o=.c)

########## Compiler and library options

###############################

.KEEP_STATE:
all : fpp.a($(FPP_OBJS))

clean:
	rm -f $(FPP_OBJS) fpp.a

#### main program ##########################

fpp.a(%.o): %.c
	$(CC) -c $< -o $*.o
	ar -rs $@ $*.o
	rm -f $*.o

